package cn.kimming.mapper;

import cn.kimming.common.pojo.Orderbill;
import cn.kimming.common.vo.CheckInVO;
import cn.kimming.common.vo.CheckOutVO;
import cn.kimming.common.vo.OrderbillVO;
import com.alibaba.fastjson.JSONObject;

import java.math.BigDecimal;
import java.util.List;

public interface OrderbillMapper {
    int deleteByPrimaryKey(Long id);


    int insertSelective(Orderbill record);

    Orderbill selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Orderbill record);

    List<OrderbillVO> findInfo(String phone);

    String findOrderIdByPhone(String phone);

    CheckInVO findCheckInVOByOrderId(String orderId);

    Orderbill selectByIdAndCheckIn(Long orderbillId);

    CheckOutVO findCheckOutVOById(Long orderbillId);

    BigDecimal findRoomFeeById(Long orderbillId);

    Orderbill selectByOrderId(String orderId);

    Long findTodayCount();

    List<JSONObject> getRecentOrderCounts();

    List<JSONObject> getMonthOrderAmount();
}